<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <!-- 公共样式 -->
    <link rel="stylesheet" href="styles/common.css">
    <!-- 自定义样式 -->
    <link rel="stylesheet" href="styles/index.css">
     <!-- jquery -->
     <script type="text/javascript" src="js/jquery-2.1.4.min.js"></script>
    <title>首页</title>
</head>
<script type="text/javascript">
    ! function(e, t) { var n = t.documentElement,
    d = e.devicePixelRatio || 1;
    function i() { var e = n.clientWidth / 3.75;
        n.style.fontSize = e + "px" } if (function e() { t.body ? t.body.style.fontSize = "16px" : t.addEventListener("DOMContentLoaded", e) }(), i(), e.addEventListener("resize", i), 
        e.addEventListener("pageshow", function(e) { e.persisted && i() }), d >= 2) { var o = t.createElement("body"),
        a = t.createElement("div");
        a.style.border = ".5px solid transparent", o.appendChild(a), n.appendChild(o), 1 === a.offsetHeight && n.classList.add("hairlines"), n.removeChild(o) } }(window, document)
</script>
<body>
    <div class="nav-bar">
        <div class="top-nav">
            <div class="nav-menu">
                <img src="images/menu.png" alt="菜单">
                <i></i>
            </div>
            <div class="top-menus">
                <ul>
                    <li class="active">推荐</li>
                    <li>快讯</li>
                    <li>专题</li>
                    <li>外汇</li>
                    <li>期货</li>
                    <li>股票</li>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </ul>
            </div>
            <div class="top-search">
                <img src="images/search.png" alt="搜索">
            </div>
            <!-- 清除浮动 -->
            <div class="clearfix"></div>
        </div>
        <div class="user-info">
            <div class="info-left">
                <div class="head">
                    <img src="images/tx.png" alt="head">
                </div>
                <div class="login-regist">
                    <div class="cz-btns">
                        <span>登录</span>
                        <i>/</i>
                        <span>注册</span>
                    </div>
                    <div class="tips">
                        <span>点击登录享受更多资讯服务</span>
                    </div>
                </div>
                <!-- 清除浮动 -->
                <div class="clearfix"></div>
            </div>
            <div class="info-right">
                <input type="button" value="开启个性化阅读">
            </div>
            <!-- 清除浮动 -->
            <div class="clearfix"></div>
        </div>
    </div>
    <div class="page">
        <div class="ad-banner">
                <ul class="ad-img">
                    <li>
                        <img src="images/banner.png" alt="">
                    </li>
                    <li>
                        <img src="images/banner.png" alt="">
                    </li>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </ul>
                <ul class="ad-num"></ul>
            </div>
            <div class="ad-menus">
                <ul>
                    <li>
                        <img src="images/wh.png" alt="外汇">
                        <p>外汇</p>
                    </li>
                    <li>
                        <img src="images/qh.png" alt="期货">
                        <p>期货</p>
                    </li>
                    <li>
                        <img src="images/gq.png" alt="港美股">
                        <p>港美股</p>
                    </li>
                    <li>
                        <img src="images/gp.png" alt="沪深">
                        <p>沪深</p>
                    </li>
                    <li>
                        <img src="images/hj.png" alt="百科">
                        <p>百科</p>
                    </li>
                </ul>
            </div>
            <div class="main main-one">
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>房贷30年压力大？实际赚翻了！！！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-red">顶</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                            <i>广告</i>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news2.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>房贷30年压力大？实际赚翻了！！！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-yellow">荐</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                            <i>广告</i>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news2.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>房贷30年压力大？实际赚翻了！！！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-red">顶</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                            <i>广告</i>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news2.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
            </div>
            <div class="adviser-list">
                <div class="item">
                    <div class="info">
                        <div class="head">
                            <img src="images/tx.png" alt="">
                            <img class="back" src="images/tj.png" alt="">
                        </div>
                        <div class="name">
                            <span>张艺兰</span>
                        </div>
                        <div class="key">
                            <span>用心交易者</span>
                        </div>
                        <div class="icon">
                            <span>猜你喜欢</span>
                        </div>
                    </div>
                    <div class="tj-btns">
                        <span>向他提问</span>
                    </div>
                </div>
                <div class="item">
                    <div class="info">
                        <div class="head on">
                            <img src="images/tx.png" alt="">
                            <img class="back" src="images/tj.png" alt="">
                        </div>
                        <div class="name">
                            <span>恍恍惚惚</span>
                        </div>
                        <div class="key">
                            <span>用心交易者</span>
                        </div>
                        <div class="icon">
                            <span>猜你喜欢</span>
                        </div>
                    </div>
                    <div class="tj-btns">
                        <span>向他提问</span>
                    </div>
                </div>
                <div class="item">
                    <div class="info">
                        <div class="head on">
                            <img src="images/tx.png" alt="">
                            <img class="back" src="images/tj.png" alt="">
                        </div>
                        <div class="name">
                            <span>恍恍惚惚</span>
                        </div>
                        <div class="key">
                            <span>用心交易者</span>
                        </div>
                        <div class="icon">
                            <span>猜你喜欢</span>
                        </div>
                    </div>
                    <div class="tj-btns">
                        <span>向他提问</span>
                    </div>
                </div>
            </div>
            <div class="main main-two">
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>房贷30年压力大？实际赚翻了！！！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-yellow">荐</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news1.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>房贷30年压力大？实际赚翻了！！！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-yellow">荐</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news1.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
            </div>
            <div class="activity">
                <div class="title">
                    <div class="title-left">
                        <span>赠金活动</span>
                    </div>
                    <div class="title-right">
                        <span>全部</span>
                        <img src="images/jt.png" alt="全部">
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
                <div class="activity-content">
                    <div class="activity-img">
                        <img src="images/banner2.png" alt="">
                    </div>
                    <div class="activity-key">
                        <p>信用卡取现？甚至违法套现？不要再傻了！缺钱可以预借现金！</p>
                    </div>
                    <div class="activity-date">
                        <span>活动时间：2018-08-19 18:08:43</span>
                    </div>
                    <div class="bm-btn">
                        <input type="button" value="报名中">
                    </div>
                </div>
            </div>
            <div class="main main-three">
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>信用卡取现？甚至违法套现？不要再傻了！缺钱可以预借现金！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-yellow">荐</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news1.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>信用卡取现？甚至违法套现？不要再傻了！缺钱可以预借现金！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-yellow">荐</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news1.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
            </div>
            <div class="news-point">
                <div class="news-mask"></div>
                <div class="infos">
                    <div class="title"><span>美国经济那点事</span></div>
                    <div class="number"><span>11,590 人关注</span></div>
                </div>
                <div class="dy-btn">
                    <input type="button" value="订阅">
                </div>
            </div>
            <div class="main main-four">
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>信用卡取现？甚至违法套现？不要再傻了！缺钱可以预借现金！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-yellow">荐</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news1.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>信用卡取现？甚至违法套现？不要再傻了！缺钱可以预借现金！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-yellow">荐</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news1.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>信用卡取现？甚至违法套现？不要再傻了！缺钱可以预借现金！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-yellow">荐</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news1.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>信用卡取现？甚至违法套现？不要再傻了！缺钱可以预借现金！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-yellow">荐</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news1.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>信用卡取现？甚至违法套现？不要再傻了！缺钱可以预借现金！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-yellow">荐</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news1.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
                <div class="item">
                    <div class="item-left">
                        <div class="title">
                            <span class="round"></span>
                            <span class="text">黄金</span>
                        </div>
                        <div class="keyword">
                            <p>信用卡取现？甚至违法套现？不要再傻了！缺钱可以预借现金！</p>
                        </div>
                        <div class="infos">
                            <font class="font font-yellow">荐</font>
                            <span>观点</span>
                            <span class="point">•</span>
                            <span>黄金行情</span>
                            <span class="point">•</span>
                            <span>2018-4-17</span>
                        </div>
                    </div>
                    <div class="item-right">
                        <div class="more">
                            <span></span>
                            <span></span>
                            <span></span>
                        </div>
                        <div class="right-img">
                            <img src="images/news1.png" alt="">
                        </div>
                    </div>
                    <!-- 清除浮动 -->
                    <div class="clearfix"></div>
                </div>
            </div>
    </div>
    <div class="footer">
        <div class="footer-item active">
            <img src="images/menu-blue-1.png" alt="汇圈">
            <p>汇圈</p>
        </div>
        <div class="footer-item">
            <img src="images/menu-gray-2.png" alt="话题">
            <p>话题</p>
        </div>
        <div class="footer-item">
            <img src="images/menu-gray-3.png" alt="商城">
            <p>商城</p>
        </div>
        <div class="footer-item">
            <img src="images/menu-gray-4.png" alt="福利">
            <p>福利</p>
        </div>
        <div class="footer-item">
            <img src="images/menu-gray-5.png" alt="我的">
            <p>我的</p>
        </div>
    </div>
</body>
<script type="text/javascript">
    $(function() {
        // 轮播
        //初始
        $(".ad-img li").first().fadeIn().siblings().fadeOut();
        $(".ad-num li").eq(0).addClass("on");
        // 轮播标识
        var len = $(".ad-img li").length;
        for (var i=0; i<len; i++) {
            $(".ad-num").append("<li></li>");
        }
        $(".ad-num li:first-child").addClass("on");

        //2.自动轮播
        var i = 0;
        var t = setInterval(moveR, 5000);

        //向右运动函数
        var size = $(".ad-img li").size();
        function moveR(){
            i++;
            if(i>=size) {
                i = 0;
            }
            $(".ad-num li").eq(i).addClass("on").siblings().removeClass("on");
            $(".ad-img li").eq(i).fadeIn().siblings().fadeOut();
        }
        function moveL(){
            i--;
            if(i<=size) {
                i = 0;
            }
            $(".ad-num li").eq(i).addClass("on").siblings().removeClass("on");
            $(".ad-img li").eq(i).fadeIn().siblings().fadeOut();
        }

        // 滑动轮播
        $(".ad-img").on("touchstart", function(e) {
            // 判断默认行为是否可以被禁用
            if (e.cancelable) {
                // 判断默认行为是否已经被禁用
                if (!e.defaultPrevented) {
                    e.preventDefault();
                }
            }   
            startX = e.originalEvent.changedTouches[0].pageX,
            startY = e.originalEvent.changedTouches[0].pageY;
        });
        $(".ad-img").on("touchend", function(e) {         
            // 判断默认行为是否可以被禁用
            if (e.cancelable) {
                // 判断默认行为是否已经被禁用
                if (!e.defaultPrevented) {
                    e.preventDefault();
                }
            }               
            moveEndX = e.originalEvent.changedTouches[0].pageX,
            moveEndY = e.originalEvent.changedTouches[0].pageY,
            X = moveEndX - startX,
            Y = moveEndY - startY;
            //左滑
            if ( X > 0 ) {
                moveL();      
            }
            //右滑
            else if ( X < 0 ) {
                moveR();         
            }
        });
    })
</script>
</html>